package daoTest;

import com.hanlibin.bean.CriteriaBook;
import com.hanlibin.dao.Impl.BookDaoiMapper;
import com.hanlibin.dao.dao.BookDao;
import org.junit.Test;

/**
 * Created by Administrator on 2016/9/19/019.
 */
public class BookTest {
    BookDao bookDao=new BookDaoiMapper();
    @Test
    public void testgetBook(){

        System.out.println(bookDao.getBook(2));
    }
    @Test
    public void testgetCount(){
        CriteriaBook criteriaBook=new CriteriaBook();
        System.out.println(bookDao.getTotalBookNumber(criteriaBook));
    }
    @Test
    public void testGetList(){
        CriteriaBook criteriaBook=new CriteriaBook();
        criteriaBook.setPageNo(2);
        System.out.println(bookDao.getPageList(criteriaBook,3));
    }
    @Test
    public void testgetStoreNumber(){
        System.out.println(bookDao.getStoreNumber(2));
    }
}
